/*******************************************************************
This file is part of iAgenda.

iAgenda is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

iAgenda is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with iAgenda.  If not, see <http://www.gnu.org/licenses/>.
*******************************************************************/

#pragma once
//#define EDB1
#define AJIGE_TEST
#define DB_VOL_FN		 TEXT("pim.vol")  //ajige 6/2

#include "stdafx.h"
#include "macros.h"
#include "resourceppc.h"
#include <pimstore.h>

// These functions are for categories
HRESULT PoomCategoriesPopulate(ScreenDefinition hgScreen, DataItem * parent, void (*adder)(DataItem*),
                     CSettings * pSettings); 
HRESULT PoomCategoriesGetTitle(ScreenDefinition hgScreen,DataItem * parent, TCHAR * buffer, int cchDest,
                     CSettings * pSettings);
HRESULT PoomCategoriesClick(ScreenDefinition hgScreen,DataItem * data, float x, 
                  int * newScreen, CSettings * pSettings);

// These functions are for the main list of appointments
HRESULT PoomPopulate(ScreenDefinition hgScreen, DataItem * parent, void (*adder)(DataItem*),
                     CSettings * pSettings);
HRESULT PoomGetTitle(ScreenDefinition hgScreen,DataItem * parent, TCHAR * buffer, int cchDest,
                     CSettings * pSettings);
HRESULT PoomGetGroup(ScreenDefinition hgScreen,DataItem * data, TCHAR * buffer, int cchDest,
                     CSettings * pSettings);
HRESULT PoomClick(ScreenDefinition hgScreen,DataItem * data, float x, 
                  int * newScreen, CSettings * pSettings);
HRESULT PoomAddItem(ScreenDefinition hgScreen);
//5/4/10
HRESULT EditPopulate(ScreenDefinition hgScreen, DataItem * parent, void (*adder)(DataItem*),
                     CSettings * pSettings);
HRESULT EditGetTitle(ScreenDefinition hgScreen,DataItem * parent, TCHAR * buffer, int cchDest,
                     CSettings * pSettings);
HRESULT EditClick(ScreenDefinition hgScreen,DataItem * data, float x, 
                  int * newScreen, CSettings * pSettings);
// These functions are for an appointment details screen
HRESULT PoomDetailsPopulate(ScreenDefinition hgScreen, DataItem * parent, void (*adder)(DataItem*),
                            CSettings * pSettings);
HRESULT PoomDetailsGetTitle(ScreenDefinition hgScreen,DataItem * parent, TCHAR * buffer, int cchDest,
                     CSettings * pSettings);
HRESULT PoomDetailsClick(ScreenDefinition hgScreen,DataItem * data, float x,
                         int * newScreen, CSettings * pSettings);
//HRESULT PoomDetailsToggleFavorite(ScreenDefinition hgScreen,DataItem * data, CSettings * pSettings);

//int AddToArray (DataItem  item);


